package com.ruoyi.background.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 部门排名表对象 app_rank_dept
 * 
 * @author ruoyi
 * @date 2024-08-23
 */
public class AppRankDept extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 部门Id */
    @Excel(name = "部门Id")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 排名 */
    @Excel(name = "排名")
    private Long rank;

    /** 累计天数 */
    @Excel(name = "累计天数")
    private Long daySum;

    /** 累计分数 */
    @Excel(name = "累计分数")
    private Long gradeSum;

    /** 累计兑换步数 */
    @Excel(name = "累计兑换步数")
    private Long stepSum;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rowDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setRank(Long rank) 
    {
        this.rank = rank;
    }

    public Long getRank() 
    {
        return rank;
    }
    public void setDaySum(Long daySum) 
    {
        this.daySum = daySum;
    }

    public Long getDaySum() 
    {
        return daySum;
    }
    public void setGradeSum(Long gradeSum) 
    {
        this.gradeSum = gradeSum;
    }

    public Long getGradeSum() 
    {
        return gradeSum;
    }
    public void setStepSum(Long stepSum) 
    {
        this.stepSum = stepSum;
    }

    public Long getStepSum() 
    {
        return stepSum;
    }
    public void setRowDate(Date rowDate) 
    {
        this.rowDate = rowDate;
    }

    public Date getRowDate() 
    {
        return rowDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("rank", getRank())
            .append("daySum", getDaySum())
            .append("gradeSum", getGradeSum())
            .append("stepSum", getStepSum())
            .append("createTime", getCreateTime())
            .append("rowDate", getRowDate())
            .toString();
    }
}
